package com.override;

import com.override.entity.Animal;
import com.override.entity.Dog;

/**
 * Test
 *
 * @author byc
 * @date 2022-02-04
 */
public class Test {
    public static void main(String[] args) {
        Animal animal = new Animal();
        animal.eat();

        Animal dog = new Dog();
        dog.eat();

        Animal animal1 = new Dog();
        animal1.eat("meat");
    }
}
